package com.baizhi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("cmfz_banner")
public class Banner implements Serializable {
    @TableId(value = "banner_id",type = IdType.AUTO)
    private Integer bannerId;
    @TableField("banner_image_url")
    private String imageUrl;
    @TableField("banner_old_name")
    private String oldName;
    @TableField("banner_state")
    private Integer state;
    @TableField("banner_date")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date date;
    @TableField("banner_description")
    private String description;
}
